package com.springcloud.auth.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.springcloud.auth.entity.TToken;
import com.springcloud.auth.vo.TokenVo;
import com.springcloud.commom.api.R;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author hzl
 * @since 2019-12-09
 */
public interface TTokenService extends IService<TToken> {

	void clearToken(String accessToken);

	R<TokenVo> refreshAccessToken(String refreshToken) throws Exception;

	/**
	 * 刷新token记录更新 的时间
	 */
	void updateRefreshTime(String accessToken);
}
